Object.defineProperty(exports, "__esModule", {
    value: true
});

var MarkerType = {
    taxiStation: {
        type: "taxiStation",
        width: 22,
        height: 22,
        iconPath: "/resources/images/taxi/taxi_station.png",
        anchor: {
            x: .5,
            y: .5
        },
        zIndex: 15
    },
    taxiStationBlack: {
        type: "taxiStationBlack",
        width: 8,
        height: 8,
        iconPath: "/resources/images/taxi/taxi_station_black.png",
        anchor: {
            x: .5,
            y: .5
        },
        zIndex: 15
    },
    taxi: {
        type: "taxi",
        width: 20,
        height: 37,
        iconPath: "/resources/images/taxi/taxi_icon.png",
        // rotate: util.formatAngle(item.angle),
        anchor: {
            x: .5,
            y: .5
        },
        zIndex: 100
    },
    startAddress: {
        type: "startAddress",
        iconPath: "/resources/images/taxi/call_start_icon.png",
        width: 24,
        height: 37,
        anchor: {
            x: .5,
            y: .9
        },
        zIndex: 16
    },
    endAddress: {
        type: "endAddress",
        iconPath: "/resources/images/taxi/call_end_icon.png",
        width: 24,
        height: 36,
        anchor: {
            x: .5,
            y: .9
        },
        zIndex: 16
    },
    onStation: {
        type: "onStation",
        iconPath: "/resources/images/on_station_selected.png"
    },
    offStation: {
        type: "offStation",
        iconPath: "/resources/images/off_station_selected.png"
    },
    /**
   * 优点巴士相关
   */
    udianbusStartStationPos: function udianbusStartStationPos(_ref) {
        var isFirstOrLast = _ref.isFirstOrLast, isSelected = _ref.isSelected;
        return {
            type: "udianbusStartStationPos",
            iconPath: isSelected ? "/images/on_icon.png" : isFirstOrLast ? "/images/start_point.png" : "/images/start_station_pos.png",
            width: isSelected ? 28 : isFirstOrLast ? 20 : 16,
            height: isSelected ? 42 : isFirstOrLast ? 20 : 16,
            anchor: {
                x: .5,
                y: isSelected ? .8 : .5
            }
        };
    },
    udianbusEndStationPos: function udianbusEndStationPos(_ref2) {
        var isFirstOrLast = _ref2.isFirstOrLast, isSelected = _ref2.isSelected;
        return {
            type: "udianbusEndStationPos",
            iconPath: isSelected ? "/images/off_icon.png" : isFirstOrLast ? "/images/udianbus/end_point.png" : "/images/end_station_pos.png",
            width: isSelected ? 28 : isFirstOrLast ? 20 : 16,
            height: isSelected ? 42 : isFirstOrLast ? 20 : 16,
            anchor: {
                x: .5,
                y: isSelected ? .8 : .5
            }
        };
    },
    udianbusStartEndStationPos: function udianbusStartEndStationPos(_ref3) {
        var isStart = _ref3.isStart, isSelected = _ref3.isSelected;
        return {
            type: "udianbusEndStationPos",
            iconPath: !isSelected ? "/images/map_on_off_icon.png" : isStart ? "/images/udianbus/on_icon.png" : "/images/off_icon.png",
            width: isSelected ? 28 : 16,
            height: isSelected ? 42 : 16,
            anchor: {
                x: .5,
                y: isSelected ? .8 : .5
            }
        };
    },
    udianbusBusIcon: function udianbusBusIcon(gpsStatus) {
        return {
            type: "udianbusBusIcon",
            iconPath: "/resources/images/udianbus/" + (gpsStatus == 1 ? "car-gps-normal" : gpsStatus == 2 ? "car-gps-defer" : "car-gps-lose") + ".png",
            width: 42,
            height: 42,
            anchor: {
                x: .5,
                y: .5
            }
        };
    }
};

var PolylineType = {
    taxiRoute: {
        type: "taxiRoute",
        width: 7,
        arrowLine: true,
        color: "#B9B9B9"
    },
    walkRouteOn: {
        type: "walkRouteOn",
        dottedLine: true,
        color: "#4A4C5B",
        width: 6
    },
    walkRouteOnBlue: {
        type: "walkRouteOnBlue",
        dottedLine: true,
        color: "#3385FF",
        width: 3
    },
    /**
   * 定制公交
   */
    dingzhibus: {
        type: "dingzhibus",
        color: "#26a2ff",
        width: 8,
        arrowLine: true
    }
};

exports.MarkerType = MarkerType;

exports.PolylineType = PolylineType;